<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
	let xyj=['唐僧','沙僧','猪八戒','孙悟空'];
			console.log(xyj);
			console.log('------------------------------');
		//第二种方法
		for(let index in xyj){
			console.log(xyj[index]);
			}
			console.log('------------------------------');
		//第三种种方法
		let kobai=[];
			kobai.push('唐僧','沙僧','猪八戒','孙悟空');
			console.log(kobai);
	</script>
	
</html>
